/**
 * edurender
 * er_memory.h
 * (c) 2009 J. Brad Byrd
 */

#ifndef ER_MEMORY_H
#define ER_MEMORY_H

#include <stddef.h>

void *erMalloc(size_t size, const char *file, int line);
void erFree(void *ptr, const char *file, int line);

#define ER_MALLOC(size)		erMalloc((size), __FILE__, __LINE__);
#define ER_FREE(ptr)		erFree((ptr), __FILE__, __LINE__);

#endif // ER_MEMORY_H
